﻿<%@ Page Title="" Language="C#" MasterPageFile="~/back/Site.master" AutoEventWireup="true"
    Inherits="back_AddArchitects" CodeFile="AddArchitects.aspx.cs" ValidateRequest="false" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <script type="text/javascript" src="../js/jquery.MultiFile.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $('.cleditor').cleditor();
            $("input:checkbox, input:radio, input:file").not('[data-no-uniform="true"],#uniform-is-ajax').uniform();
            $('[data-rel="chosen"],[rel="chosen"]').chosen();
        });
    </script>
    <div class="page-header">
        <h1>
            Add Architect</h1>
    </div>
    <div id="divMessage" runat="server">
    </div>
    <div style="float: left; width: 50%;">
        <div class="control-group">
            <label class="control-label">
                Architectural Firm</label>
            <div class="controls">
                <asp:TextBox ID="txtFirmName" runat="server" CssClass="input-xlarge"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvFirmName" runat="server" ErrorMessage="*" ForeColor="Red"
                    ControlToValidate="txtFirmName" Display="Dynamic" ValidationGroup="SubmitArchitect"></asp:RequiredFieldValidator>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label">
                Architect Firm Logo</label>
            <div class="controls">
                <asp:FileUpload ID="uplArchitectImage" runat="server" class="input-file uniform_on" />
                <div id="divimage" runat="server" visible="false">
                    <a id="aviewimage" runat="server" style="display: none;" target="_blank">View Image</a></div>
            </div>
            <asp:HiddenField ID="hfArchitectImageName" runat="server" />
        </div>
        <div class="control-group">
            <label class="control-label">
                Address</label>
            <div class="controls">
                <asp:TextBox ID="txtAddress" TextMode="MultiLine" Rows="5" runat="server" CssClass="input-xlarge"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvFirstname" runat="server" ForeColor="Red" ErrorMessage="*"
                    ControlToValidate="txtAddress" Display="Dynamic" ValidationGroup="SubmitArchitect"></asp:RequiredFieldValidator>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label">
                Phone</label>
            <div class="controls">
                <asp:TextBox ID="txtPhone" runat="server" CssClass="input-xlarge"></asp:TextBox>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label">
                Fax</label>
            <div class="controls">
                <asp:TextBox ID="txtFax" runat="server" CssClass="input-xlarge"></asp:TextBox>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label">
                Email</label>
            <div class="controls">
                <asp:TextBox ID="txtEmail" runat="server" CssClass="input-xlarge"></asp:TextBox>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label">
                Website</label>
            <div class="controls">
                <asp:TextBox ID="txtWebsite" runat="server" CssClass="input-xlarge"></asp:TextBox>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label">
                Property Location</label>
            <div class="controls">
                <asp:DropDownList ID="ddlPropertyLocation" runat="server" data-rel="chosen">
                    <asp:ListItem Text="Select Property Location" Value=""></asp:ListItem>
                    <asp:ListItem Text="Ahmedabad" Value="Ahmedabad"></asp:ListItem>
                    <asp:ListItem Text="Banglore" Value="Banglore"></asp:ListItem>
                    <asp:ListItem Text="Cochin" Value="Cochin"></asp:ListItem>
                    <asp:ListItem Text="Pune" Value="Pune"></asp:ListItem>
                </asp:DropDownList>
            </div>
        </div>
        
    </div>
    <div style="float: right; width: 50%;">
        <div class="control-group">
            <label class="control-label">
                Description</label>
            <div class="controls">
                <asp:TextBox ID="txtDescription" TextMode="MultiLine" runat="server" CssClass="cleditor"></asp:TextBox>
            </div>
        </div>
        <div class="control-group" id="div2" runat="server">
            <label class="control-label">
                No Of Employees
            </label>
            <div class="controls">
                <asp:TextBox ID="txtEmployeeNos" runat="server" CssClass="input-xlarge"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" CssClass="alert-error"
                    ForeColor="Red" ErrorMessage="*" ValidationGroup="SubmitArchitect" ControlToValidate="txtEmployeeNos"
                    Display="Dynamic"></asp:RequiredFieldValidator>
            </div>
        </div>
        <div class="control-group" id="div3" runat="server">
            <label class="control-label">
                Founded
            </label>
            <div class="controls">
                <asp:TextBox ID="txtFounded" runat="server" CssClass="input-xlarge"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" CssClass="alert-error"
                    ForeColor="Red" ErrorMessage="*" ValidationGroup="SubmitArchitect" ControlToValidate="txtFounded"
                    Display="Dynamic"></asp:RequiredFieldValidator>
            </div>
        </div>
        <div class="control-group" id="div1" runat="server">
            <label class="control-label">
                Specialization
            </label>
            <div class="controls">
                <asp:TextBox ID="txtSpecialization" runat="server" CssClass="input-xlarge"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" CssClass="alert-error"
                    ForeColor="Red" ErrorMessage="*" ValidationGroup="SubmitArchitect" ControlToValidate="txtSpecialization"
                    Display="Dynamic"></asp:RequiredFieldValidator>
            </div>
        </div>
        <div class="control-group" id="divUsername" runat="server">
            <label class="control-label">
                Username
            </label>
            <div class="controls">
                <asp:TextBox ID="txtUsername" runat="server" CssClass="input-xlarge"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvUsedrName" runat="server" CssClass="alert-error"
                    ForeColor="Red" ErrorMessage="*" ValidationGroup="SubmitArchitect" ControlToValidate="txtUsername"
                    Display="Dynamic"></asp:RequiredFieldValidator>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label">
                Password
            </label>
            <div class="controls">
                <asp:TextBox ID="txtPassword" runat="server" CssClass="input-xlarge" TextMode="Password"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvPassword" runat="server" CssClass="alert-error"
                    ForeColor="Red" ErrorMessage="*" ValidationGroup="SubmitArchitect" ControlToValidate="txtPassword"
                    Display="Dynamic"></asp:RequiredFieldValidator>
            </div>
        </div>
    </div>
    <div class="clearfix">
        &nbsp;</div>
    
    <div class="form-actions">
        <asp:Button ID="btnSubmit" runat="server" CssClass="btn btn-primary" Text="Submit"
            OnClick="btnSubmit_Click" ValidationGroup="SubmitArchitect" />
    </div>
</asp:Content>
